/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package e.z.blog.back.com.impl;

import e.z.blog.back.com.ComGetLocaleApi;
import java.util.Collection;
import java.util.Locale;
import java.util.Set;
import java.util.TreeSet;
import org.nutz.ioc.loader.annotation.IocBean;

/**
 *
 * @author EnzoZhong
 */
@IocBean
public class ComGetLocale implements ComGetLocaleApi {

        @Override
        public Collection<String> getLocale () {
                Set<String> localeSet = new TreeSet();
                for ( Locale locale : Locale.getAvailableLocales() ) {
                        localeSet.add( locale.toString() );
                }
                return localeSet;
        }
}
